package main

import (
	"fmt"
	"time"
)

type VCard struct {
	Name     string
	Birthday time.Time
	Avatar   string
	Address  *Address
}

type Address struct {
	Provinces, City, Area string
}

func main() {
	birthday, _ := time.Parse("2006-01-02", "1998-08-17")
	card := &VCard{Name: "张三", Birthday: birthday, Avatar: "aaa.jpg",
		Address: &Address{"广东省", "深圳市", "龙岗区"},
	}

	fmt.Println(card)
	fmt.Println(card.Address)

}
